#include "MessageKeyPress.h"
#include "MessagesDefs.h"




MessageKeyPress::MessageKeyPress(std::string id)
:	Message(MessagesDefs::k_MESSAGE_KEY_PRESS, id)
{	
	//setData(0, 0, 0, 0, 0);
}

MessageKeyPress::~MessageKeyPress()
{

}

void MessageKeyPress::setData(int keyCode)
{
	m_data->seek(MSG_OFFSET_ID);
	m_data->readUTF(); // Skip id

	//m_data->writeInt(keyCode);
}

int MessageKeyPress::getKeyCode()
{
	m_data->seek(MSG_OFFSET_ID);
	
	return m_data->readInt();
}